﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

/// <summary>
/// Summary description for SampleODS
/// </summary>
[DataObject(true)]
public class SampleODS
{
    public class Sample
    {
        public string SId { get; set; }
        public string Name { get; set; }
        public string Nullable { get; set; }
    }

	public SampleODS()
	{
	}

    public IList<Sample> ListSamples()
    {
        IList<Sample> list = new List<Sample>();
        for (int i = 0; i < 10; i++)
        {
            Sample s = new Sample();
            s.SId = Guid.NewGuid().ToString();
            s.Name = "Sample" + i.ToString();
            s.Nullable = (i % 2) == 0 ? null : "Chance";
            list.Add(s);
        }
        return list;
    }


    public void UpdateSample(Sample sample)
    {

    }

    public IDictionary<string, string> ListDropDown()
    {
        IDictionary<string, string> map = new Dictionary<string, string>();
        map.Add("Chance", "Chance Text");
        return map;
    }
}